package com.weather.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.weather.service.CityClient;

/**
 * @Description City Controller
 *
 * @author 堆堆堆
 * @date 2018年5月31日 上午10:05:26
 */
@RestController
public class CityController {

	@Autowired
	private CityClient cityClient;

	@GetMapping("/cities")
	public String listCity() {

		// 通过 Feign 客户端来查找
		String body = cityClient.listCity();
		return body;
	}
}
